﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;

namespace BHair.bb
{
    public partial class XtraReport1 : DevExpress.XtraReports.UI.XtraReport
    {
        public XtraReport1()
        {
            InitializeComponent();
        }
        public XtraReport1(DataSet ds) 
        {
            InitializeComponent();
            SetDataBind(ds);
        }
        private void SetDataBind(DataSet ds) 
        {
            string ygname = chuanzhi.userID;
            this.xrLabel10.Text = ygname;
            string time = DateTime.Now.ToLongDateString();
            this.xrLabel7.Text = time;
            DataSource = ds;
            this.xldjbh.DataBindings.Add("Text", DataSource, "djbh");
            this.xlxm.DataBindings.Add("Text", DataSource, "spname");
            this.xlcs.DataBindings.Add("Text", DataSource, "xfcs");
            this.xlcardID.DataBindings.Add("Text", DataSource, "cardid");
            this.xltime.DataBindings.Add("Text", DataSource, "riqi");
        }

    }
}
